package com.ruoyi.project.channel.freezeInfo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 金额冻结表 freeze_info
 * 
 * @author CAIN
 * @date 2021-02-04
 */
public class FreezeInfo extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 冻结id */
	private Long freezeId;
	/** 冻结金额 */
	private BigDecimal amount;
	/** 开始冻结时间 */
	private Date startTime;
	/** 结束冻结时间 */
	private Date endTime;
	/** 冻结天数 */
	private Integer freezeDay;
	/** 用户id */
	private Long userId;
	/** 实际转换金额 */
	private BigDecimal realAmount;
	private String userName;
	private String rootUserName;
	private Long rootUserId;
	private Long investId;
	private String freezeType; // 冻结类型  0: 正常 1:体验金
	public void setFreezeId(Long freezeId) 
	{
		this.freezeId = freezeId;
	}

	public Long getFreezeId() 
	{
		return freezeId;
	}
	public void setAmount(BigDecimal amount) 
	{
		this.amount = amount;
	}

	public BigDecimal getAmount() 
	{
		return amount;
	}
	public void setStartTime(Date startTime) 
	{
		this.startTime = startTime;
	}

	public Date getStartTime() 
	{
		return startTime;
	}
	public void setEndTime(Date endTime) 
	{
		this.endTime = endTime;
	}

	public Date getEndTime() 
	{
		return endTime;
	}
	public void setFreezeDay(Integer freezeDay) 
	{
		this.freezeDay = freezeDay;
	}

	public Integer getFreezeDay() 
	{
		return freezeDay;
	}
	public void setUserId(Long userId) 
	{
		this.userId = userId;
	}

	public Long getUserId() 
	{
		return userId;
	}
	public void setRealAmount(BigDecimal realAmount) 
	{
		this.realAmount = realAmount;
	}

	public BigDecimal getRealAmount() 
	{
		return realAmount;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("freezeId", getFreezeId())
            .append("amount", getAmount())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("freezeDay", getFreezeDay())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .append("realAmount", getRealAmount())
            .toString();
    }

	public Long getInvestId() {
		return investId;
	}

	public void setInvestId(Long investId) {
		this.investId = investId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRootUserName() {
		return rootUserName;
	}

	public void setRootUserName(String rootUserName) {
		this.rootUserName = rootUserName;
	}

	public Long getRootUserId() {
		return rootUserId;
	}

	public void setRootUserId(Long rootUserId) {
		this.rootUserId = rootUserId;
	}

	public String getFreezeType() {
		return freezeType;
	}

	public void setFreezeType(String freezeType) {
		this.freezeType = freezeType;
	}
}
